package main

import (
	"fmt"
	"math"
)

func minlen(x, y int) int {
	if x > y {
		return y
	} else {
		return x
	}
}
func BubbleSort(arr *[6]int) {
	lenx := len(*arr)
	for x := 0; x < lenx-1; x++ {

		for i := 0; i < lenx-x-1; i++ {

			if (*arr)[i] > (*arr)[minlen(i+1, lenx-1)] {

				(*arr)[i], (*arr)[i+1] = (*arr)[i+1], (*arr)[i]

			}
		}
	}
	fmt.Println(*arr)
}

func main() {

	a := [6]int{34, 12, 42, 78, 35, 67}

	BubbleSort(&a)
	fmt.Printf("%T", int(math.Max(4, 6)))
}
